(let ((key-lst (listify-key-sequence (kbd key))))
(cond ((null alist) (list (cons key-lst value)))
((assoc key-lst alist)
- (message "which-key: changing %s name from %s to %s in the %s alist"
- key (cdr (assoc key-lst alist)) value alist-name)
- (setcdr (assoc key-lst alist) value)
+ (when (not (string-equal (cdr (assoc key-lst alist)) value))
+ (message "which-key: changing %s name from %s to %s in the %s alist"
+ key (cdr (assoc key-lst alist)) value alist-name)
+ (setcdr (assoc key-lst alist) value))
alist)
(t (cons (cons key-lst value) alist)))))